#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
cout << "Vvedite trehznachnoe chislo"<<endl;
    int ama,b,c,d,g,t;
    cin >>ama;

b=(ama/100);
c=(ama-(b*100));
d=(c/10);
g=(c-(d*10));

t=(g*100+d*10+b);
cout<<t<<endl;


    return 0;
}
